package builder;

/**
 * @ProjectName: interview
 * @Package: builder
 * @ClassName: HouseBuilder
 * @Author: chenmengqi
 * @Description:
 * @Date: 2020/1/17 8:49 下午
 * @Version: 1.0
 */
public abstract class HouseBuilder {

    protected House house = new House();

    //将建造的流程写好, 抽象的方法
    public abstract void buildBasic();

    public abstract void buildWalls();

    public abstract void roofed();

    //建造房子好， 将产品(房子) 返回
    public House buildHouse() {
        return house;
    }
}
